package com.mrd.modules.system.entity;

import java.io.Serializable;



/**
 * 用户表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-07-12 11:01:14
 */
public class SysUserEntity implements Serializable {
  private static final long serialVersionUID = 1L;

  // 状态(1：正常；-1：删除；0：锁定)
  private String status;
  // 密码
  private String password;
  // 头像
  private String portrait;
  // 姓名
  private String realname;
  // 用户名
  private String username;
  // 主键
  private Integer id;

  public SysUserEntity(String status, String password, String portrait, String realname,
      String username, Integer id) {
    this.status = status;
    this.password = password;
    this.portrait = portrait;
    this.realname = realname;
    this.username = username;
    this.id = id;
  }

  public SysUserEntity() {

  }

  /**
   * 设置：状态(1：正常；-1：删除；0：锁定)
   */
  public void setStatus(String status) {
    this.status = status;
  }

  /**
   * 获取：状态(1：正常；-1：删除；0：锁定)
   */
  public String getStatus() {
    return status;
  }

  /**
   * 设置：密码
   */
  public void setPassword(String password) {
    this.password = password;
  }

  /**
   * 获取：密码
   */
  public String getPassword() {
    return password;
  }

  /**
   * 设置：头像
   */
  public void setPortrait(String portrait) {
    this.portrait = portrait;
  }

  /**
   * 获取：头像
   */
  public String getPortrait() {
    return portrait;
  }

  /**
   * 设置：姓名
   */
  public void setRealname(String realname) {
    this.realname = realname;
  }

  /**
   * 获取：姓名
   */
  public String getRealname() {
    return realname;
  }

  /**
   * 设置：用户名
   */
  public void setUsername(String username) {
    this.username = username;
  }

  /**
   * 获取：用户名
   */
  public String getUsername() {
    return username;
  }

  /**
   * 设置：主键
   */
  public void setId(Integer id) {
    this.id = id;
  }

  /**
   * 获取：主键
   */
  public Integer getId() {
    return id;
  }

  @Override
  public String toString() {
    return "[status=" + status + ", password=" + password + ", portrait=" + portrait + ", realname="
        + realname + ", username=" + username + ", id=" + id + "]";
  }

}
